# 提供给其它项目引用的共享资源(如果想通过框架构建引用的话）
if(FRAMEWORK_WANT_INCLUDE)

    set(FRAMEWORK_INCLUDE_EXPORTS      # 共享的引用目录
        # ${CMAKE_CURRENT_LIST_DIR}/src
    )
    set(FRAMEWORK_SOURCES_EXPORTS      # 共享的资源文件
        # ${CMAKE_CURRENT_LIST_DIR}/src/*
    )

    if(feature_source_code_pro)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/constants")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/font/SourceCodePro/font.qrc")
        target_compile_definitions(${FRAMEWORK_PLUGIN} PUBLIC FONT_DECLARE_SOURCE_CODE_PRO_FONT)
    endif(feature_source_code_pro)

    if(feature_fira_code)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/constants")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/font/Fira_Code/font.qrc")
        target_compile_definitions(${FRAMEWORK_PLUGIN} PUBLIC FONT_DECLARE_FIRA_CODE_FONT)
    endif(feature_fira_code)

    if(feature_cascadia_mono)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/constants")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/font/Cascadia_Mono/font.qrc")
        target_compile_definitions(${FRAMEWORK_PLUGIN} PUBLIC FONT_DECLARE_CASCADIA_MONO_FONT)
    endif(feature_cascadia_mono)

    if(feature_jetbrains_mono)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/constants")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/font/JetBrainsMono-2.304/font.qrc")
        target_compile_definitions(${FRAMEWORK_PLUGIN} PUBLIC FONT_DECLARE_JETBRAINS_MONO_FONT)
    endif(feature_jetbrains_mono)

    if(feature_linux_open_in_terminal)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/linux-open-in-terminal")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/linux-open-in-terminal/linuxterminalhelper.cpp")
    endif(feature_linux_open_in_terminal)

    if(feature_linux_frp_gui_configuration)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/frp-gui")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/frp-gui/*")
    endif(feature_linux_frp_gui_configuration)

    if(feature_svg_convert)
        list(APPEND FRAMEWORK_INCLUDE_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/svg-convert")
        list(APPEND FRAMEWORK_SOURCES_EXPORTS "${CMAKE_CURRENT_LIST_DIR}/examples/svg-convert/*")
    endif(feature_svg_convert)

    set(FRAMEWORK_WITHGIT_EXPORTS      # 共享的引用构建资源
        # 1. 引用了公共存储库
        # https://gitee.com/ndd-community/framework-plugin-component-library

        # 2. 引用了该项目提供的 - 间接引用 QFtp
        # https://gitee.com/spark-framework-libs/QFtpExample
        # https://gitee.com/spark-framework-libs/QFtp

        # 3. 引用了该项目提供的 Drag/Drop Eaters 与 EventUtil
        # https://gitee.com/zinface/notepad--plugin.image-view
    )

    # 特殊构建 - 为引用资源的目标配置预期所需依赖的构建
        # FRAMEWORK_PLUGIN 引用本资源的框架目标变量
    # find_package(Qt5Svg)
    # target_link_libraries(${FRAMEWORK_PLUGIN} Qt5::Svg)

    return()
endif(FRAMEWORK_WANT_INCLUDE)

